package com.xhj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhj.entity.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    ArrayList<String> selectAllPermissionValue();

    ArrayList<String> selectPermissionValueByUserId(@Param("uid") String uid);

    List<Permission> selectMenuByRoleId(@Param("roleId") String roleId);

    List<Permission> selectPermissionByUserId(@Param("userId") String userId);
}
